package com.matt.order.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDto implements Serializable {
    private String orderId;
    private String orderSettlementTime;
    private String orderTimeLong;
    private String orderPlaywith;
    private String orderCustomer;
    /**
     * 派单员
     */
    private String orderDispatcher;
    private String orderGame;
    private String orderLevel;
    /**
     * 付款
     */
    private BigDecimal orderPay;
    /**
     * 工资
     */
    private BigDecimal orderWages;
    /**
     * 礼物
     */
    private BigDecimal orderGift;

    /**
     * 打赏
     */
    private BigDecimal orderReward;

    /**
     * 点名
     */
    private String orderRollCall;

    /**
     * 评价
     */
    private String orderEvaluate;

    /**
     * 备注
     */
    private String orderNotes;

    /**
     * 结单
     */
    private String orderOverAccount;

    private String orderCreatime;

    private String orderUpdatetime;

    public String getFmtOrderOverAccount() {
        return orderOverAccount.equals("0") ? "已结" : "未结";
    }

    public String getFmtOrderRollCall() {
        return orderRollCall.equals("0") ? "是" : "否";
    }

    private String orderTimeLongSum;
    private String orderPaySum;
    private String orderWagesSum;
    private String orderGiftSum;
    private String orderRewardSum;
    private String orderGamePer;
    private String orderLevelPer;
    private String readOnlyFlg;
}
